<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<jsp:include page="../inc.jsp"></jsp:include>

    <script type="text/javascript"
            src="${pageContext.request.contextPath}/plug-in/swfupload/swfupload.js"
            charset="utf-8"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/plug-in/swfupload/uploadPanel.js"
            charset="utf-8"></script>
<script type="text/javascript">
Ext.onReady(function(){
    Ext.QuickTips.init();

    createLayout();


});

// 创建layout
function createLayout() {
    var form=Ext.create('Ext.ux.uploadPanel.UploadPanel',{
        renderTo : Ext.getBody(),
        addFileBtnText : '选择文件',
        uploadBtnText : '上传',
        removeBtnText : '移除所有文件',
        cancelBtnText : '取消上传',
        upload_url : getRootPath()+'/attachmentController/attachment.action?businessKey=<%=request.getParameter("businessKey")%>'
    });


    var viewport = new Ext.Viewport({
        layout: 'fit',
        items: [  form
        ]
    });

    viewport.doLayout();
}

</script>
</head>
<body>
</body>
</html>